package com.dxy.yesas2020goals.study.partone.disignpattern.adapterpattern.electonic.clazzmode.objectmode;

/**
 * @author victorydeng
 * @Classname PowerAdapter
 * @Description TODO
 * @Date 2020/3/20 20:14
 * @Created by victorydeng
 */
public class PowerAdapter  implements DC5V {

  private AC220V ac220V;

  public PowerAdapter(AC220V ac220V) {
    this.ac220V = ac220V;
  }

  @Override
  public int out5V() {
    int origin = ac220V.out220V();
    int target = origin % 44;
    return target;
  }
}
